home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / setup.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  9.5 KB  |  500 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ SETUP MENU \\
  5.  
  6. menuDef {
  7.         name "setup_menu"
  8.         visible 0
  9.         fullscreen 1
  10.         rect 186 0 454 480
  11.     background "menuback_a"
  12.         //background uibackground4
  13.         focusColor 1 .75 0 1
  14.         style 1
  15.         border 1
  16.     onOpen { setitemcolor fadebox backcolor 0 0 0 1 ; 
  17.         playlooped "music/fla_mp03.wav" ;
  18.         fadeout fadebox }
  19.     onEsc { close setup_menu ; open main }
  20.  
  21.  
  22.  
  23.  
  24. itemDef {
  25.           name solid_box
  26.           style 1 
  27.     rect 4 2 178 426
  28.           border 1 
  29.           bordersize 1
  30.           bordercolor .5 .5 .5 .5
  31.           backcolor 0 0 .75 .25
  32.           visible 1 
  33.           decoration 
  34.     mouseEnter { setcolor backcolor .75 0 0 .5 }
  35.           mouseExit { setcolor backcolor 0 0 .75 .25 }
  36.     }
  37.  
  38.  
  39.  
  40.  
  41.  
  42. // Control    //
  43.  
  44.  
  45.  
  46.  
  47. itemDef {
  48.     name controls
  49.     text "Controls"
  50.     textscale .5
  51.     style 0    
  52.     type 1
  53.     textstyle 6
  54.     rect 0 75 200 40 
  55.     textalign 3     
  56.     textalignx 20      
  57.            textaligny 32        
  58.     backcolor 0 0 0 0
  59.     forecolor 1 1 1 1
  60.     visible 1 
  61.     action { play "sound/misc/kcaction.wav" ; 
  62.     close control_menu ; 
  63.     close system_menu ;
  64.     close options_menu ; 
  65.     close cdkey_menu ;
  66.     close default_menu ;   
  67.     close resetscore_menu ;   
  68.     open control_menu }
  69.     mouseenter { show message_controls }
  70.     mouseexit { hide message_controls }
  71.     }
  72.     
  73.  
  74.  
  75.  
  76.  
  77.  
  78. //     System        //
  79.  
  80. itemDef {
  81.           name system
  82.           text "System"
  83.           style 0
  84.     type 1
  85.     textstyle 6
  86.           textscale .5    
  87.           rect 0 125 200 40 
  88.           textalign 3        // center
  89.           textalignx 20          // x alignment point for text
  90.                       // use it to offset left/right text from the edge 
  91.                            // or to center the text on a different point
  92.     textaligny 32        
  93.           backcolor 0 0 0 0
  94.           forecolor 1 1 1 1
  95.     visible 1
  96.     action { play "sound/misc/kcaction.wav" ; 
  97.     close control_menu ; 
  98.     close system_menu ;
  99.     close options_menu ; 
  100.     close cdkey_menu ;
  101.     close default_menu ;   
  102.     close resetscore_menu ;  
  103.     open system_menu }    
  104.     mouseenter { show message_system }
  105.     mouseexit { hide message_system }    
  106.     }
  107.  
  108.  
  109.  
  110. // Game Options    //
  111.  
  112. itemDef {
  113.           name gameoptions
  114.           text "Game Options"
  115.           style 0
  116.     type 1
  117.     textstyle 6
  118.           textscale .5    
  119.           rect 0 175 200 40 
  120.           textalign 3        // center
  121.           textalignx 20          // x alignment point for text
  122.                       // use it to offset left/right text from the edge 
  123.                            // or to center the text on a different point
  124.            textaligny 32        
  125.           backcolor 0 0 0 0
  126.           forecolor 1 1 1 1
  127.     visible 1 
  128.     action { play "sound/misc/kcaction.wav" ; 
  129.     close control_menu ; 
  130.     close system_menu ;
  131.     close options_menu ; 
  132.     close cdkey_menu ;
  133.     close default_menu ;   
  134.     close resetscore_menu ;   
  135.     open options_menu }    
  136.     mouseenter { show message_gameoptions }
  137.     mouseexit { hide message_gameoptions }
  138.     }
  139.  
  140.     
  141.  
  142.  
  143. // CD Key    //
  144.  
  145. itemDef {
  146.           name cdkey
  147.           text "Enter CD Key"
  148.           style 0    
  149.     type 1
  150.           textscale .5
  151.     textstyle 6
  152.           rect 0 225 200 40 
  153.           textalign 3        // center
  154.           textalignx 20          // x alignment point for text
  155.                       // use it to offset left/right text from the edge 
  156.                            // or to center the text on a different point
  157.     textaligny 32        
  158.     forecolor 1 1 1 1
  159.     visible 1 
  160.     mouseenter { show message_cdkey }
  161.     mouseexit { hide message_cdkey }
  162.     action { play "sound/misc/kcaction.wav" ; 
  163.     close control_menu ; 
  164.     close system_menu ;
  165.     close options_menu ; 
  166.     close cdkey_menu ;
  167.     close default_menu ;   
  168.     close resetscore_menu ;   
  169.     open cdkey_menu }
  170.     }
  171.  
  172.  
  173.  
  174. // Reset Defaults    //
  175.  
  176. itemDef {
  177.           name defaults
  178.           text "Defaults"
  179.           style 0    
  180.     type 1
  181.     textstyle 6
  182.           textscale .5
  183.           rect 0 275 200 40 
  184.           textalign 3        // center
  185.           textalignx 20          // x alignment point for text
  186.                       // use it to offset left/right text from the edge 
  187.                            // or to center the text on a different point
  188.     textaligny 32        
  189.     forecolor 1 1 1 1
  190.     visible 1 
  191.     mouseenter { show message_default }
  192.     mouseexit { hide message_default }
  193.     action { play "sound/misc/kcaction.wav" ; 
  194.     close control_menu ; 
  195.     close system_menu ;
  196.     close options_menu ; 
  197.     close cdkey_menu ;
  198.     close default_menu ;   
  199.     close resetscore_menu ;    
  200.     open default_menu }
  201.     }
  202.  
  203. // Reset Score    //
  204.  
  205.  
  206. itemDef {
  207.           name scores
  208.           text "Clear Scores"
  209.           style 0    
  210.     type 1
  211.     textstyle 6
  212.           textscale .5
  213.           rect 0 325 200 40 
  214.           textalign 3        // center
  215.           textalignx 20          // x alignment point for text
  216.                       // use it to offset left/right text from the edge 
  217.                            // or to center the text on a different point
  218.     textaligny 32        
  219.     forecolor 1 1 1 1
  220.     visible 1 
  221.     mouseenter { show message_scores }
  222.     mouseexit { hide message_scores }
  223.     action { play "sound/misc/kcaction.wav" ; 
  224.     close control_menu ; 
  225.     close system_menu ;
  226.     close options_menu ; 
  227.     close cdkey_menu ;
  228.     close default_menu ;   
  229.     close resetscore_menu ; 
  230.     open resetscore_menu }
  231.     }
  232.  
  233.  
  234.  
  235. // BACK BAR    //
  236.  
  237.  
  238. itemDef {
  239.           name gotobar
  240.           style 2
  241.           rect 0 430 640 30 
  242.           textscale 0.4
  243.           textalign 0        // center
  244.           textalignx 60            // x alignment point for text
  245.                                 // use it to offset left/right text from the edge 
  246.                                 // or to center the text on a different point
  247.           textaligny 21        
  248.           style 2
  249.           border 4
  250.           bordercolor 0.5 0.5 0.5 0.5
  251.           bordersize 2
  252.           backcolor 0 0 .75 0.5
  253.           visible 1 
  254.           mouseEnter { setcolor backcolor .75 0 0 .5 }
  255.           mouseExit { setcolor backcolor 0 0 .75 .5 }
  256.           decoration 
  257.         }
  258.  
  259.     itemDef {
  260.           name back
  261.     style 3
  262.           background "ui/assets/backarrow.tga"
  263.     rect 16 424 50 50 
  264.           visible 1 
  265.           action { close setup_menu ; open main }
  266.     mouseEnter { hide back ; show back_alt ; show message_back }
  267.         }
  268.  
  269. itemDef {
  270.           name back_alt
  271.           style WINDOW_STYLE_SHADER
  272.     background "ui/assets/backarrow_alt.tga"
  273.     rect 14 422 54 54 
  274.           backcolor 0 0 0 0
  275.           forecolor 1 1 1 1
  276.           visible 0
  277.     type ITEM_TYPE_BUTTON
  278.     //action {  play "sound/misc/tim_pump.wav" ; 
  279.     action { hide grpControls ; 
  280.     close control_menu ; 
  281.     close setup_menu ; 
  282.     close system_menu ;
  283.     close options_menu ; 
  284.     close cdkey_menu ; 
  285.     close default_menu ; 
  286.     close resetscore_menu ;  
  287.     open main }  
  288.           mouseExit { hide back_alt ; show back ; hide message_back }      
  289.         }
  290.  
  291.  
  292. //    MESSAGES    //
  293.  
  294. itemDef {
  295.     name message_back
  296.     style 0 
  297.     rect 320 430 128 30
  298.     textstyle 1
  299.     textalign 1
  300.     textalignx 0
  301.     textaligny 25
  302.     textscale .4
  303.     text "Exit to Main Menu"
  304.     forecolor 1 1 1 1
  305.     decoration 
  306.     visible 0
  307.     }
  308.  
  309. itemDef {
  310.     name message_accept
  311.     style 0 
  312.     rect 320 430 128 30
  313.     textalign 1
  314.     textstyle 1
  315.     textalignx 0
  316.     textaligny 25
  317.     textscale .4
  318.     text "Refresh Video"
  319.     forecolor 1 1 1 1
  320.     decoration 
  321.     visible 0
  322.     }
  323.  
  324. itemDef {
  325.     name message_controls
  326.     style 0 
  327.     rect 320 430 128 30
  328.     textalign 1
  329.     textstyle 1
  330.     textalignx 0
  331.     textaligny 25
  332.     textscale .4
  333.     text "Select to Edit Game Controls"
  334.     forecolor 1 1 1 1
  335.     decoration 
  336.     visible 0
  337.     }
  338.  
  339. itemDef {
  340.     name message_nowork
  341.     style 0 
  342.     rect 320 430 128 30
  343.     textalign 1
  344.     textstyle 1
  345.     textalignx 0
  346.     textaligny 25
  347.     textscale .4
  348.     text "Selection Isn't Implemented"
  349.     forecolor 1 1 1 1
  350.     decoration 
  351.     visible 0
  352.     }
  353.  
  354. itemDef {
  355.     name message_look
  356.     style 0 
  357.     rect 320 430 128 30
  358.     textalign 1
  359.     textstyle 1
  360.     textalignx 0
  361.     textaligny 25
  362.     textscale .4
  363.     text "Select to Edit View Controls"
  364.     forecolor 1 1 1 1
  365.     decoration 
  366.     visible 0
  367.     }
  368.  
  369. itemDef {
  370.     name message_move
  371.     style 0 
  372.     rect 320 430 128 30
  373.     textalign 1
  374.     textstyle 1
  375.     textalignx 0
  376.     textaligny 25
  377.     textscale .4
  378.     text "Select to Edit Movement Controls"
  379.     forecolor 1 1 1 1
  380.     decoration 
  381.     visible 0
  382.     }
  383.  
  384. itemDef {
  385.     name message_shoot
  386.     style 0 
  387.     rect 320 430 128 30
  388.     textalign 1
  389.     textstyle 1
  390.     textalignx 0
  391.     textaligny 25
  392.     textscale .4
  393.     text "Select to Edit Firing and Weapon Selection"
  394.     forecolor 1 1 1 1
  395.     decoration 
  396.     visible 0
  397.     }
  398. itemDef {
  399.     name message_misc
  400.     style 0 
  401.     rect 320 430 128 30
  402.     textalign 1
  403.     textstyle 1
  404.     textalignx 0
  405.     textaligny 25
  406.     textscale .4
  407.     text "Select to Edit Chat and Mouse Functions"
  408.     forecolor 1 1 1 1
  409.     decoration 
  410.     visible 0
  411.     }
  412. itemDef {
  413.     name message_system
  414.     style 0 
  415.     rect 320 430 128 30
  416.     textalign 1
  417.     textstyle 1
  418.     textalignx 0
  419.     textaligny 25
  420.     textscale .4
  421.     text "Edit System Settings"
  422.     forecolor 1 1 1 1
  423.     decoration 
  424.     visible 0
  425.     }
  426. itemDef {
  427.     name message_gameoptions
  428.     style 0 
  429.     rect 320 430 128 30
  430.     textalign 1
  431.     textstyle 1
  432.     textalignx 0
  433.     textaligny 25
  434.     textscale .4
  435.     text "Edit Game Options"
  436.     forecolor 1 1 1 1
  437.     decoration 
  438.     visible 0
  439.     }
  440. itemDef {
  441.     name message_cdkey
  442.     style 0 
  443.     rect 320 430 128 30
  444.     textalign 1
  445.     textstyle 1
  446.     textalignx 0
  447.     textaligny 25
  448.     textscale .4
  449.     text "Enter Encryption Key"
  450.     forecolor 1 1 1 1
  451.     decoration 
  452.     visible 0
  453.     }
  454. itemDef {
  455.     name message_default
  456.     style 0 
  457.     rect 320 430 128 30
  458.     textalign 1
  459.     textstyle 1
  460.     textalignx 0
  461.     textaligny 25
  462.     textscale .4
  463.     text "Reset to Default Settings"
  464.     forecolor 1 1 1 1
  465.     decoration 
  466.     visible 0
  467.     }
  468. itemDef {
  469.     name message_scores
  470.     style 0 
  471.     rect 320 430 128 30
  472.     textalign 1
  473.     textstyle 1
  474.     textalignx 0
  475.     textaligny 25
  476.     textscale .4
  477.     text "Clear High Scores to Zero"
  478.     forecolor 1 1 1 1
  479.     decoration 
  480.     visible 0
  481.     }
  482.  
  483.  
  484. itemDef {
  485.           name fadebox
  486.           style WINDOW_STYLE_FILLED
  487.      background "ui/assets/fadebox.tga"
  488.     forecolor 0 0 0 1
  489.     backcolor 0 0 0 1
  490.     rect 0 0 640 480
  491.           visible 1 
  492.     decoration
  493.         }
  494.  
  495.  
  496. }
  497.  
  498.  
  499. }
  500.